package com.zhou.base.components.mp.ds.template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 评论
 * </p>
 *
 * @author zxf
 * @since 2023-10-28
 */
@Getter
@Setter
@ApiModel(value = "Comment对象", description = "评论")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("唯一标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("toId")
    @ApiModelProperty("被回复的id")
    private Long toId;

    @TableField("momentId")
    @ApiModelProperty("动态id")
    private Long momentId;

    @ApiModelProperty("创建日期")
    private LocalDateTime date;

    @ApiModelProperty("内容")
    private String content;


    @TableField(value = "userId", fill = FieldFill.INSERT)
    @ApiModelProperty("评论人 User 的 id")
    private Long userId;

    @TableField(value = "deptId", fill = FieldFill.INSERT)
    @ApiModelProperty("评论人的部门id")
    private Long deptId;


}
